<template>
	<view class="bg-white h100">
		<view class="u-p-40 text-center">
			<u-icon name="order" class="u-type-primary" style="font-size: 190upx;"></u-icon>
			<view class="u-p-t-40 u-font-34">提交成功！</view>
			<view class="u-p-t-40 u-tips-color">您可在【工作台】查看或管理您的案件！</view>
		</view>
		<view class="u-flex u-absolute w100" style="bottom:20upx">
			<u-button style="width: 300upx;" @click="goOrder">查看案件</u-button>
			<u-button type="primary" style="width: 300upx;" @click="goBack">继续申报</u-button>
		</view>
	</view>
</template>

<script>
	import ksjPreviewImage from 'components/kd-preview-image/kd-preview-image.vue';
	export default {
		components: {
			ksjPreviewImage
		},
		//#ifdef MP-WEIXIN
		onShareAppMessage(res) { //分享
			try { //从本地缓存中同步获取指定 key 对应的内容。
				var mv = uni.getStorageSync('memberinfo');
				var xv = uni.getStorageSync('xshopInfo');
				if (res.from === 'button') { // 来自页面内分享按钮
					console.log(res.target)
				}
				return {
					title: xv.store.stores_name,
					path: '/pages/home/index?member_openid=' + mv.openid + "&stores_id=" + xv.store.stores_id
				}
			} catch (e) {
				// error
			}

		},
		//#endif
		data() {
			return {
				url: this.$u.http.config.baseUrl,
				submit_data:{
					realname:'',//公司名称
					phone_number:'',//信用代码
					idcard:'',
					idcard_imgurl:'',
					entity_report:0,
					report:[]
				},
				preview:false,
				preview_imgs:[],
				preview_index:0,
				isbtn:true,//按钮状态
			}
		},
		onLoad: function(e) {
			const value = uni.getStorageSync('userinfo');
			this.submit_data.user_id = value['_id'];
		},
		methods: {
			//返回上一页
			goBack(){
				uni.redirectTo({
					url:"/pages/form/addpreorder"
				})
			},
			goOrder(){
				uni.redirectTo({
					url:"/pages/center/preorder_list?state=0"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	
	.list {
		padding: 24upx 0;
		border-bottom: 1upx solid #f6f6f6;
	}
	.color-error {
		color: $u-type-error;
	}
	.u-type-primary {
		color: $u-type-primary;
	}
</style>
